package com.aw.manual.ejemplo011;

import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Component;

import javax.annotation.PostConstruct;
import javax.annotation.PreDestroy;

/**
 * User: gmc
 * Date: 01/06/2010
 */
@Component
@Scope("prototype")
public class Freno {
    @PostConstruct
    public void inicializar() {
        System.out.println("Inicializando:"+this);
    }
    @PreDestroy
    public void finalizar() {
        System.out.println("Finalizando:"+this);
    }
}
